<!DOCTYPE html>
<html lang="en" xmlns:V-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>属性绑定</title>
</head>
<body>
<div>
    {{info}}
    <!-- 属性绑定 让某个属性的值和变量进行绑定 -->
    <input type="text" :value="info">
    <input type="text" V-bind:value="info">
    <!-- 如果元素的属性里面出现变量 必须要在属性前面加冒号 -->
    <a :href="url">超链接</a>
    <img :src="imgName">
</div>
<script src="JS/vue.min.js"></script>
<script>
    let v = new Vue({
        el: "body>div",
        data: {
            info: "属性绑定",
            url:"http://www.baidu.com",
            imgName:"dn1.png"
        }
    })
</script>
</body>
</html>